package com.meilai.project.service.business.sale;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meilai.project.entity.business.sale.BillSaleMediaDetail;
import com.meilai.project.vo.business.sale.BillSaleMediaDetailVO;

import java.math.BigDecimal;
import java.util.List;

public interface BillSaleMediaDetailService extends IService<BillSaleMediaDetail> {

    int deleteByBillSaleId(Long bill_sale_id);

    List<BillSaleMediaDetailVO> selectByBillSaleId(Long bill_sale_id);

    List<BillSaleMediaDetailVO> getByBillSaleId(Long bill_sale_id,Long bill_sale_detail_id);

    BigDecimal getTotalExecutedAmount(Long contract_id);

    void updateIsMarket(Long marketDetailId,Long billSaleDetailId);
}
